<?php
/**
 * Notes:
 * User: LiaoHong
 * Date: 2025/10/20
 * Time: 10:56
 **/


namespace App\Models\User;


use Illuminate\Database\Eloquent\Model;
use DateTimeInterface;
class Dept extends Model
{
    protected $table = 'dept';
    protected $primaryKey = 'dept_id';

    protected function serializeDate(DateTimeInterface $date): string
    {
        // 格式化为 年月日时分秒（如：2025-10-17 00:38:59）
        return $date->format('Y-m-d H:i:s');
    }
}
